package com.bupt.ilink.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.bupt.ilink.entity.DatasetTags;
import com.bupt.ilink.entity.ModelTags;
import com.bupt.ilink.mapper.DatasetTagsMapper;
import com.bupt.ilink.service.ModelTagsService;
import com.bupt.ilink.mapper.ModelTagsMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author LENOVO
* @description 针对表【model_tags】的数据库操作Service实现
* @createDate 2024-08-03 16:28:24
*/
@Service
public class ModelTagsServiceImpl extends ServiceImpl<ModelTagsMapper, ModelTags>
    implements ModelTagsService{

    @Autowired
    private ModelTagsMapper modelTagsMapper;

    @Override
    public List<ModelTags> getTagsByModelId(Long modelId) {
        return modelTagsMapper.selectByModelId(modelId);
    }

    @Override
    public List<String> getCommonTags() { return modelTagsMapper.selectCommonTags(); }

}




